<?php
/**
 * Created by 项目.
 * User: xuguopeng
 * Date: 2020-05-28
 * Time: 11:54
 */

namespace app\api\validate\county;


use LinCmsTp5\validate\BaseValidate;

class CheckCounty extends BaseValidate
{
    protected $rule = [
        'province_id' => 'require|isPositiveInteger',
        'city_id' => 'require|isPositiveInteger',
        'name' => 'require|max:50',
    ];

    protected $message = [
        'province_id' => '请选择正确的省份信息',
        'city_id' => '请选择正确城市信息',
        'name' => '请输入县区名称且长度不大于50字符'
    ];
}